package com.project.test;

import com.project.bean.ManBean;
import com.project.config.ManConfig;
import com.project.service.IManService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.time.LocalDate;

public class test {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(ManConfig.class);
        IManService service = context.getBean(IManService.class);
//        System.out.println(service.findAll());
        service.add(new ManBean("111", LocalDate.parse("1998-03-04")));
//        service.del(8);
//        service.update(1,LocalDate.parse("2001-03-03"));

    }
}
